PHP / JS application for video manipulation. Allows you to cut the video into pieces and combine them. Convert video formats: MP4, WEBM, FLV, OGV.
*/1 * * * * php -f /var/www/mysite.com/cron.php queue > /dev/null
On the dedicated server or VDS you need in the terminal run the command:
sudo crontab -e
Add new string.
As the root directory for your web site, you need to specify the folder /public/.
Example configuration for Nginx:
server {
listen 80;
server_name your-site.com www.your-site.com;
charset utf-8;
client_max_body_size 500m;
client_body_buffer_size 128k;
client_header_timeout 240;
client_body_timeout 240;
fastcgi_read_timeout 240;
index index.php;
root /var/www/your-site.com/public;
error_log /var/log/nginx/your-site.com_error.log;
access_log /var/log/nginx/your-site.com_access.log;
location / {
root /var/www/your-site.com/public;
index index.php;
}
location ~* \.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
access_log off;
expires max;
log_not_found off;
root /var/www/your-site.com/public;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi.conf;
}
}
Example for Apache:
Listen 80
<VirtualHost *:80>
DocumentRoot "/var/www/your-site.com/public"
ServerName your-site.com
# Other directives here
</VirtualHost>
You can install the app to the folder of the domain. For this you need to edit the path in the application configuration.
Developer website: http://ffmpeg.org/
Install FFmpeg recommended by this manual:
https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
Need to install any additional applications that are listed in this manual.
Attention!
It is strongly recommended to install all applications in a folder /usr/bin/ and /usr/ffmpeg_build/.
To do this in the instructions you need to replace all "$HOME" to "/usr". For install open command line (terminal).
Example:
mkdir ~/ffmpeg_sources cd ~/ffmpeg_sources wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 tar xjvf ffmpeg-snapshot.tar.bz2 cd ffmpeg PATH="$PATH:/usr/bin" PKG_CONFIG_PATH="/usr/ffmpeg_build/lib/pkgconfig" ./configure \ --prefix="/usr/ffmpeg_build" \ --extra-cflags="-I/usr/ffmpeg_build/include" \ --extra-ldflags="-L/usr/ffmpeg_build/lib" \ --bindir="/usr/bin" \ --enable-gpl \ --enable-libass \ --enable-libfdk-aac \ --enable-libfreetype \ --enable-libmp3lame \ --enable-libopus \ --enable-libtheora \ --enable-libvorbis \ --enable-libvpx \ --enable-libx264 \ --enable-nonfree \ --enable-x11grab PATH="$PATH:/usr/bin" make sudo make install make distclean hash -r
The application has a simple intuitive interface.